﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace OpenData.WebApi
{
    public class IndexConfig
    {
        public string Server { get; set; }
        public string KeywordUrl { get; set; }
        public List<IndexInfo> IndexList { get; set; }
    }
    public class IndexInfo
    {
        public string Index { get; set; }
        public string Title { get; set; }
        public Content Content { get; set; }
        public List<FieldInfo> SearchFields { get; set; }
        public List<string> Highlight { get; set; }

    }
    public class FieldInfo
    {
        public string FieldName { get; set; }
        public double Boost { get; set; }
    }
}
